package com.md.youyouhui.utils;

import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AlertDialog;

import com.md.youyouhui.ui.login.LoginActivity;

/**
 * Created by AdministratorZJ
 * on 2019/6/17.
 */
public class DialogLoginUtils {
    public void dialogLogin(Context context) {
        new AlertDialog.Builder(context).setMessage("请先登录")
                .setNegativeButton("取消", (dialog, which) -> dialog.dismiss())
                .setPositiveButton("确定", (dialog, which) -> context.startActivity(new Intent(context, LoginActivity.class))).show();
    }
}
